// import '@babel/polyfill';

function add(x, y) {
  return x + y;
}
console.log(add(1, 2));

const add2 = (a, b) => (a + b) * 10;

console.log(add2(1, 2));

const promise = new Promise((resolve)=>{
  setTimeout(()=>{
    console.log('time end')
    resolve()
  },1000)
})

promise.then(res=>{
  console.log('promise');
})
